package com.zerdoor.dao;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2014/11/20.
 */
public interface AdvertDao {

    /**
     * FunName:           selectAllAdverts
     * Description :      首获取广告列表
     * @param map 查询广告条件
     * @return String：广告
     * @Author:       xiaoji
     * @Create Date: 2014-11-24
     */
    public List<Map<String,Object>> selectAllAdverts(Map<String, String> map);

    /**
     * FunName:           addAdvert
     * Description :      添加广告
     * @Author:       xiaoji
     * @Create Date: 2014-11-24
     */
    public void addAdvert(Map<String, String> map)throws Exception;

    /**
     * FunName:           updateAdvert
     * Description :      修改广告
     * @Author:       xiaoji
     * @Create Date: 2014-11-24
     */
    public void updateAdvert(Map<String, String> map)throws Exception;

    /**
     * FunName:           selectAdvertById
     * Description :      根据ID修改广告
     * @param map 修改初始化查询条件
     * @return String：广告
     * @Author:       xiaoji
     * @Create Date: 2014-11-24
     */
    public Map<String,Object> selectAdvertById(Map<String, String> map);

    /**
     * FunName:           deleteAdvert
     * Description :      删除广告
     * @Author:       xiaoji
     * @Create Date: 2014-11-24
     */
    public void deleteAdvert(Map<String, String> map)throws Exception;

    /**
     * FunName:           selectAdvertGroup
     * Description :      获取广告分组列表
     * @Author:       xiaoji
     * @Create Date: 2014-11-25
     */
    public List<Map<String, Object>> selectAdvertGroup();
}
